package domain;

import java.util.List;

import aima.core.search.framework.GoalTest;
import aima.core.util.datastructure.XYLocation;

public class PacmanGoalTest implements GoalTest {

	@Override
	public boolean isGoalState(Object state) {
		PacmanBoard board = (PacmanBoard) state;
		boolean goalReached = board.getNumberOfRemainingCrumbs() == 0;
		if(goalReached) {
			System.out.println("\nSolution found: ");
			board.printBoard();
//			heurestiekCheck check=new heurestiekCheck();
//			check.setBoard(board.getMap());
//			check.printBoard();
		}
		return goalReached;
	}

}